<template>
  <div id="editor">

  </div>
</template>

<script>
import Editor from 'wangeditor'
export default {
  data(){
    return {
      editor: null
    }
  },
  mounted(){
    this.editor = new Editor('#editor')
    this.editor.create()
  },
  methods: {
    submit(){
      this.editor.txt.html()
    }
  }
}
</script>

<style>

</style>